package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.Date;

/**
 * 总成计划表 list_product_downLoad
 *
 * @author ruoyi
 */
@Data
@Entity
@Table(name = "list_product_downLoad")
@EqualsAndHashCode(callSuper = true)
@TableName(value = "list_product_downLoad")
@ApiModel(description = "总成计划表")
public class ListProductDownLoad extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    @ApiModelProperty(value = "ID")
    private Long id;

    /** 车型编码 */
    @ApiModelProperty(value = "车型编码")
    @Excel(name = "车型编码")
    private String modelCode;

    /** 总成大类编码 */
    @ApiModelProperty(value = "总成大类编码")
    @Excel(name = "总成大类编码")
    private String productCategories;

    /** 总成大类名称 */
    @ApiModelProperty(value = "总成大类名称")
    @Excel(name = "总成大类名称")
    private String productCategoriesName;

    /** 总成编码 */
    @ApiModelProperty(value = "产品编码")
    @Excel(name = "产品编码")
    private String productCode;

    /** 总成名称 */
    @ApiModelProperty(value = "总成名称")
    @Excel(name = "总成名称")
    private String productTypeName;

    /** 数量 */
    @ApiModelProperty(value = "数量")
    @Excel(name = "数量")
    private Integer serialNum;

    /** 总成类型 */
    @ApiModelProperty(value = "总成类型")
    @Excel(name = "总成类型")
    private String productType;

    /** 总成-产线编码 */
    @ApiModelProperty(value = "总成-产线编码")
    @Excel(name = "总成-产线编码")
    private String productLineCode;

    /** 客户序列号 */
    @ApiModelProperty(value = "客户序列号")
    @Excel(name = "客户序列号")
    private String sortid;

    /** 记号 */
    @ApiModelProperty(value = "记号")
    @Excel(name = "记号")
    private String markid;

    /** 批次号 */
    @ApiModelProperty(value = "批次号")
    @Excel(name = "批次号")
    private String batchNumber;

    /** 批次id */
    @ApiModelProperty(value = "批次id")
    @Excel(name = "批次id")
    private Long batchId;

    /** 质量类型 */
    @ApiModelProperty(value = "质量类型")
    @Excel(name = "质量类型")
    private Integer qualityType;

    /** 运行位置 */
    @ApiModelProperty(value = "运行位置")
    @Excel(name = "运行位置")
    private String runPosition;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "完成时间")
    @Excel(name = "完成时间")
    private Date completeTime;

    /** 生产时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "生产时间")
    @Excel(name = "生产时间")
    private Date pruductDate;

    /** 印刷 */
    @ApiModelProperty(value = "印刷")
    @Excel(name = "印刷")
    private String printed;

    /** 工具 */
    @ApiModelProperty(value = "工具")
    @Excel(name = "工具")
    private String kittinged;

    /** 打印 */
    @ApiModelProperty(value = "打印")
    @Excel(name = "打印")
    private String kprinted;

    /** qad序列号 */
    @ApiModelProperty(value = "qad序列号")
    @Excel(name = "qad序列号")
    private Long qadserial;

    /** 班次代码 */
    @ApiModelProperty(value = "班次代码")
    @Excel(name = "班次代码")
    private String shiftCode;

    /** 总成计划状态（0正常 1关闭） */
    @ApiModelProperty(value = "总成计划状态")
    private String status;

    @Transient
    private String batchNumbermin;

    @Transient
    private String lineCode;

}
